<?php
/**
 * Created by PhpStorm.
 * Date: 2022/11/24 11:03
 */

namespace App\Traits;

use App\Models\LoanApplication;

trait HasLoan
{
    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function loan()
    {
        return $this->hasOne(LoanApplication::class, 'id', 'loan_id');
    }
}
